package com.yisu.auction.manager.core.mapper;

import com.yisu.auction.ewf.entity.Show;
import com.yisu.auction.manager.domain.request.ShowInfoPackage.ShareShowRequest;
import com.yisu.auction.manager.domain.vo.showInfoPackageVos.ShareShowVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShowMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Show record);

    int insertSelective(Show record);

    Show selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Show record);

    int updateByPrimaryKey(Show record);

    /**
     * author:黄萧林
     * Business Description : 分页获取晒单信息
     *
     * @param shareShowRequest 分页请求信息
     * @return 商品分类列表
     */
    List<ShareShowVo> getShareShowByPage(ShareShowRequest shareShowRequest);

    /**
     * author:赵杰
     * Business Description : 获取全部晒单列表
     *
     * @return
     */
    List<Show> getShowForAll();

    /**
     * 随机取出数据
     * @return
     */
    List<Show> getShowForRandom(@Param("randomNum") int randomNum);
}
